﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;
namespace yb.commerce.BLL
{
    public class FavoriteBusiness
    {
        public bool Add(Favorite favorite)
        {
            return new FavoriteDAO().Add(favorite);
        }
        public bool Delete(int Id)
        {
            return new FavoriteDAO().Delete(Id);
        }
        public bool IsHaveSameProduct(Favorite favorite)
        {
            return new FavoriteDAO().IsHaveSameProduct(favorite);

        }
        public Favorite GetEntity(int Id)
        {
            return new FavoriteDAO().GetEntity(Id);
        }
        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new FavoriteDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
    }
}
